|
|
|
|
|
|
|
When you create a new class, Visual Basic presents the option of creating an empty class or starting the Class Builder (see Figure 16.6). |
|
|
|
|
|
|
|
|
|
If you do not see the Class Builder as shown in Figure 16.6, use Add-In Manager (available in the Add-Ins menu) to make it available in Visual Basic.  |
|
|
|
|
|
|
|
|
|
|
Figure 16.6
Double-clicking Class Builder starts a tool
to help you organize classes in your application. |
|
|
|
|
|
|
|
|
The Class Builder can be used to generate outlines for new classes or modify and reorganize existing classes. Figure 16.7 shows the Class Builder with the clsEmployee class loaded. |
|
|
|
|
|
|
|
|
Figure 16.7
The Class Builder provides a graphic interface to the classes,
properties, methods, constants, and events in your application. |
|
|
|
|
|
|
|
|
To add an item to your project, click one of the toolbar buttons; the Class Builder displays a dialog box where you can enter all the attributes of the new item. Figure 16.8 shows the dialog box presented for a new method. |
|
|
|
|
|